package com.caissa.springboot.starter.msg.autoconfigure;

import com.base.springboot.starter.msg.service.*;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author yuzhongo
 * @date 2020/8/17 下午3:48
 */
@Configuration
public class MsgAutoConfiguration {

    @Bean
    @ConditionalOnClass
    public EmailService emailService() {
        return new EmailService();
    }

    @Bean
    @ConditionalOnClass
    public SmsService smsService() {
        return new SmsService();
    }


    @Bean
    @ConditionalOnClass
    public WxGzService wxGzService() {
        return new WxGzService();
    }

    @Bean
    @ConditionalOnClass
    public WxMiniAppService wxMiniAppService() {
        return new WxMiniAppService();
    }

    @Bean
    @ConditionalOnClass
    public WxQyService wxQyService() {
        return new WxQyService();
    }

    @Bean
    @ConditionalOnClass
    public QiketuService qiketuService() {
        return new QiketuService();
    }

}